#if !defined(AFX_BCMINIMENTALPAGE_H__68E77FDA_C038_41CF_8F3A_7D89DB2F0A10__INCLUDED_)
#define AFX_BCMINIMENTALPAGE_H__68E77FDA_C038_41CF_8F3A_7D89DB2F0A10__INCLUDED_

#include "ScrollPage.h"
#include "../Common/LinkEdit.h"
#include "../Common/LinkComboBox.h"
#include "../Res/resource.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BCMiniMentalPage.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBCMiniMentalPage dialog

class CBCMiniMentalPage : public CScrollPage
{
// Construction
public:
	CBCMiniMentalPage(CWnd* pParent = NULL, BOOL bBigRes = TRUE);   // standard constructor

	static BOOL		ScoreFieldsCheck(LPVOID pParam);
	enum { BODYCHECKSCALEID = 9 };
	enum { INPUT_EDIT_CTRL_COUNT = 29};
	
	virtual int		SaveData(CString strMRN, int nDiagSN, BOOL bIsDraft);
	virtual BOOL	ShowTableData(CString strMRN, int nDiagSN);
	virtual BOOL	ClearData();
	virtual BOOL	EnableInputControls(BOOL bEnable);
	virtual BOOL	IsPageCurDayBlank();
	
	BOOL			ShowTableDataWithStartCol(CString strMRN, int nDiagSN, int nStartCol);
	BOOL			SetLastColTitile(CString strDate, int nDiagSN);
	
// Dialog Data
	//{{AFX_DATA(CBCMiniMentalPage)
	enum { IDD = IDD_BODYCHECK_PAGE_MINI_MENTAL, SD_IDD = IDD_BODYCHECK_PAGE_MINI_MENTAL_SD };
	CLinkEdit	m_edtMini101;
	CLinkEdit	m_edtMini102;
	CLinkEdit	m_edtMini103;
	CLinkEdit	m_edtMini104;
	CLinkEdit	m_edtMini105;
	CLinkEdit	m_edtMini106;
	CLinkEdit	m_edtMini107;
	CLinkEdit	m_edtMini108;
	CLinkEdit	m_edtMini109;
	CLinkEdit	m_edtMini110;
	CLinkEdit	m_edtMini111;
	CLinkEdit	m_edtMini112;
	CLinkEdit	m_edtMini113;
	CLinkEdit	m_edtMini114;
	CLinkEdit	m_edtMini115;
	CLinkEdit	m_edtMini116;
	CLinkEdit	m_edtMini117;
	CLinkEdit	m_edtMini118;
	CLinkEdit	m_edtMini119;
	CLinkEdit	m_edtMini120;
	CLinkEdit	m_edtMini121;
	CLinkEdit	m_edtMini122;
	CLinkEdit	m_edtMini123;
	CLinkEdit	m_edtMini124;
	CLinkEdit	m_edtMini125;
	CLinkEdit	m_edtMini126;
	CLinkEdit	m_edtMini127;
	CLinkEdit	m_edtMini128;
	CLinkEdit	m_edtMini129;
	
	CLinkEdit	m_edtMini201;
	CLinkEdit	m_edtMini202;
	CLinkEdit	m_edtMini203;
	CLinkEdit	m_edtMini204;
	CLinkEdit	m_edtMini205;
	CLinkEdit	m_edtMini206;
	CLinkEdit	m_edtMini207;
	CLinkEdit	m_edtMini208;
	CLinkEdit	m_edtMini209;
	CLinkEdit	m_edtMini210;
	CLinkEdit	m_edtMini211;
	CLinkEdit	m_edtMini212;
	CLinkEdit	m_edtMini213;
	CLinkEdit	m_edtMini214;
	CLinkEdit	m_edtMini215;
	CLinkEdit	m_edtMini216;
	CLinkEdit	m_edtMini217;
	CLinkEdit	m_edtMini218;
	CLinkEdit	m_edtMini219;
	CLinkEdit	m_edtMini220;
	CLinkEdit	m_edtMini221;
	CLinkEdit	m_edtMini222;
	CLinkEdit	m_edtMini223;
	CLinkEdit	m_edtMini224;
	CLinkEdit	m_edtMini225;
	CLinkEdit	m_edtMini226;
	CLinkEdit	m_edtMini227;
	CLinkEdit	m_edtMini228;
	CLinkEdit	m_edtMini229;

	CLinkComboBox	m_cmbMini301;
	CLinkComboBox	m_cmbMini302;
	CLinkComboBox	m_cmbMini303;
	CLinkComboBox	m_cmbMini304;
	CLinkComboBox	m_cmbMini305;
	CLinkComboBox	m_cmbMini306;
	CLinkComboBox	m_cmbMini307;
	CLinkComboBox	m_cmbMini308;
	CLinkComboBox	m_cmbMini309;
	CLinkComboBox	m_cmbMini310;
	CLinkComboBox	m_cmbMini311;
	CLinkComboBox	m_cmbMini312;
	CLinkComboBox	m_cmbMini313;
	CLinkComboBox	m_cmbMini314;
	CLinkComboBox	m_cmbMini315;
	CLinkComboBox	m_cmbMini316;
	CLinkComboBox	m_cmbMini317;
	CLinkComboBox	m_cmbMini318;
	CLinkComboBox	m_cmbMini319;
	CLinkComboBox	m_cmbMini320;
	CLinkComboBox	m_cmbMini321;
	CLinkComboBox	m_cmbMini322;
	CLinkComboBox	m_cmbMini323;
	CLinkComboBox	m_cmbMini324;
	CLinkComboBox	m_cmbMini325;
	CLinkComboBox	m_cmbMini326;
	CLinkComboBox	m_cmbMini327;
	CLinkComboBox	m_cmbMini328;
	CLinkEdit	m_edtMini329;
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBCMiniMentalPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBCMiniMentalPage)
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
		
private:
	INPUT_FIELD_INFO			m_InputFieldArray1[INPUT_EDIT_CTRL_COUNT];
	INPUT_FIELD_INFO			m_InputFieldArray2[INPUT_EDIT_CTRL_COUNT];
	INPUT_FIELD_INFO			m_InputFieldArray3[INPUT_EDIT_CTRL_COUNT];
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BCMINIMENTALPAGE_H__68E77FDA_C038_41CF_8F3A_7D89DB2F0A10__INCLUDED_)
